Permutations sortable by deques and by two stacks in parallel

نویسندگان

  • Andrew Elvey-Price
  • Anthony J. Guttmann
چکیده

In his seminal work The Art of Computer Programming [2], Knuth was the first to consider a number of classic data structures from the point of view of the permutations they could produce from the identity permutation, or equinumerously, the permutations which the data structure can sort. Famously, he noticed that the permutations obtainable using a single stack are exactly those which avoid the pattern 312. Knuth posed the same question for a number of other data structures, in particular, he asked how many permutations of each length can be obtained using a double ended queue (deque) or two stacks in parallel (tsip).

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Sorting Permutations on Two Parallel Stacks

We give a new combinatorial proof, based on stack graphs, for the characterization by forbidden subsequences of the permutations which are sortable on two parallel stacks. Some remarks about the permutations sortable on parallel queues are also made.

متن کامل

Permutations generated by stacks and deques

Lower and upper bounds are given for the the number of permutations of length n generated by two stacks in series, two stacks in parallel, and a general deque.

متن کامل

Methods of computing deque sortable permutations given complete and incomplete information

The problem of determining which permutations can be sorted using certain switchyard networks is a venerable problem in computer science dating back to Knuth in 1968. In this work, we are interested in permutations which are sortable on a double-ended queue (called a deque), or on two parallel stacks. In 1982, Rosenstiehl and Tarjan presented an O (n) algorithm for testing whether a given permu...

متن کامل

2-stack Pushall Sortable Permutations

In the 60’s, Knuth introduced stack-sorting and serial compositions of stacks. In particular, one significant question arise out of the work of Knuth: how to decide efficiently if a given permutation is sortable with 2 stacks in series? Whether this problem is polynomial or NP-complete is still unanswered yet. In this article we introduce 2-stack pushall permutations which form a subclass of 2-...

متن کامل

Permutations sortable by two stacks in series

We address the problem of the number of permutations that can be sorted by two stacks in series. We do this by first counting all such permutations of length less than 20 exactly, then using a numerical technique to obtain nineteen further coefficients approximately. Analysing these coefficients by a variety of methods we conclude that the OGF behaves as S(z) ∼ A(1− μ · z) , where μ = 12.45± 0....

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Eur. J. Comb.

دوره 59  شماره 

صفحات  -

تاریخ انتشار 2017